package com.atguigu.order.bean;

import com.atguigu.product.bean.Product;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Order {

    //订单商品id
    private Long id;

    //订单总金额
    private BigDecimal totalAmount;

    //用户id
    private Long userId;

    //用户昵称
    private String nickName;

    //用户地址
    private String address;

    //商品列表
    private List<Product> productList;
}
